import Vue from 'vue';
import VueRouter from 'vue-router';

import Index from '../views/index/index.vue'
import Home from '../views/home/home.vue'
import PrintInvoice from '../components/PrintInvoice.vue'
import Login from '../views/login/login.vue'
import Groupmessage from '../views/groupmessage/groupmessage.vue'
import People from '../views/people/people.vue'
import Solo from '../views/solo/solo.vue'
import Project from '../components/Project.vue'
import Addpeople from '../components/Addpeople.vue'
import Single from '../components/Single.vue'
import Group from '../components/Group.vue'


Vue.use(VueRouter)

const routes = [



    {
        path: '/',
        name: 'index',
        component: Index
    },

    {
        path: '/project',
        name: 'project',
        component: Project
    },
    {
        path: '/group',
        name: 'group',
        component: Group
    },
    {
        path: '/printinvoice',
        name: 'printinvoice',
        component: PrintInvoice
    },
    {
        path: '/home',
        name: 'home',
        component: Home
    },
    {
        path: '/login',
        name: 'login',
        component: Login,
        meta: { title: '首页' }
    },

    {
        path: '/groupmessage',
        name: 'groupmessage',
        component: Groupmessage

    },
    {
        path: '/people',
        name: 'people',
        component: People
    },
    {
        path: '/solo',
        name: 'solo',
        component: Solo
    },


    {
        path: '/addpeople',
        name: 'addpeople',
        component: Addpeople
    },
    {
        path: '/single',
        name: 'single',
        component: Single
    }

]


const router = new VueRouter({
    routes,
    mode: 'history',
    base: process.env.BASE_URL
})

export default router